
<!--互联网售票机数据录入-->
<template>
  <div class="mergeInfo">
    <basic-container>
      <el-dialog
        title="合并数据"
        :visible.sync="dialogVisible"
        @close="closed"
        width="950px">
        <div style="line-height: 40px;background-color: #fcf7f7;padding-left: 15px">
          <span>线路：</span><span>{{getLineName(formData.lineCode)}}</span>
          <span style="margin-left: 20px">站点：</span><span>{{getStationName(formData.lineCode,formData.stationCode)}}</span>
          <span style="margin-left: 20px"> 收入日期：</span><span>{{formData.recordTime}}</span>
        </div>
      <avue-crud
        ref="mergeInfo"
        :option="option"
        :table-loading="listLoading"
        :data="list"
        :page.sync="page">

      </avue-crud>
        <div style="width: 100%;text-align: center">
          <el-button type="primary" size="mini"  @click="closed">返回</el-button>
        </div>
      </el-dialog>
    </basic-container>

  </div>

</template>

<script>
  import {getForm, postForm} from '@/api/gen/gen'
  import {mapGetters} from 'vuex';
  import { setSearchFiledsEmpty,getLineName,getStationName
  } from "../../../../api/subwayRat/commonCheck";
  import {getMergeOption,
    getSwAuCenterConductorAmountDifferenceList,
  } from "../../../../api/subwayRat/conductorDifferences/conductorTicketChaYiShenhe/conductorTicketChaYiShenhe";
  export default {
    name: 'huLianWangShouPiaojiDataInput',
    components:{
    },
    data() {
      return {
        dialogVisible:false,
        option: {},
        listLoading: true,
        lineCodes:[],
        stationCodes:[],
        selectKeys:[],
        selectKeyVals:[],
        searchForm:{},
        formData:{},
        page: {
          total: 0, // 总页数
          currentPage: 1, // 当前页数
          pageSize: 20, // 每页显示多少条,
          isAsc: false// 是否倒序
        },
        list : []
      }
    },
    computed: {
      ...mapGetters(['permissions']),
    },
    watch: {
    },
    created() {
      this.option=getMergeOption();
    },
    methods: {
      getLineName,getStationName,
      setSearchFiledsEmpty,
      getLists(row) {
        this.formData=row;
        this.listLoading = true;
        console.log(row)
        getSwAuCenterConductorAmountDifferenceList({combinOrderId:row.id,combinStatus:1}).then((response)=>{
          this.list = response.data.data.records;
          this.listLoading = false;
          this.page.total=response.data.data.total;
        });
      },
      closed(){
        this.dialogVisible=false;
        this.$parent.isShowMergeInfo=false;
      }
    },
    mounted() {

    }
  }
</script>
<style lang="scss">
  .huLianWangShouPiaojiDataInput {
    height: 100%;

    &__tree {
      padding-top: 3px;
      padding-right: 20px;
    }

    &__main {
      .el-card__body {
        padding-top: 0;
      }
    }
    .avue-form__group{

    }
  }
</style>
